import React, { Component } from "react";

export default class MyPrice extends Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div>
        <h2>总价格为：{this.props.countPrice()} 元</h2>
      </div>
    );
  }
}
